
package combat.dudes.client.gui.threads;

import combat.dudes.DudesFunctions;
import combat.dudes.client.gui.threads.shell.GUIShellMenu;


/**
 * @author Laurens Andriessen
 */
public class Clock {
	public Clock() {
		while(true) {
			long start = DudesFunctions.DateTime.getTimeInMs();
			try {
				GUIShellMenu.menuTime.setText(DudesFunctions.DateTime.getTimeHMS());
			} catch(Exception e) {}
			DudesFunctions.Status.DelayUpdate(start, 1000, Thread.currentThread());
		}
	}
}
